var gm = {};
function waitForIt() {
	gm.dialog = jQuery(
			"<div data-role='popup' data-dismissible ='false' data-overlay-theme='b' id='dialog' style='width:250px;height:80px' class='wait-dialog-generico'><p><img id='load-img-in' "
					+ "src='resources/css/images/ajax_loader_blue_48.gif'/>Espere por favor.</p></div>")
			.appendTo($("div[data-role='page']:visible")).popup();
	gm.dialog.popup('open');

}
function dary() {
	gm.dialog.popup('close');

}